]> dgit.raspbian.org Git - gnome-shell.git/commit
blur-effect: Don't use stage view when drawing off-stage
authorJonas Dreßler <verdre@v0yd.nl>
Sat, 13 Feb 2021 15:07:22 +0000 (16:07 +0100)
committerRobert Mader <robert.mader@posteo.de>
Mon, 15 Feb 2021 12:17:08 +0000 (13:17 +0100)
commit09602ae2aee963710bd1cbbf7102fc1632d4e0df
tree843101c4f79ce8241687536a0bd76f46608d81ab
parentc592a069119b66b8f7224f28d5a9180597aa43a1
blur-effect: Don't use stage view when drawing off-stage

When we're painting off-stage, for example because we're screencasting
or taking a screenshot, there won't be a stage-view associated with the
paint context. The BlurEffect previously didn't handle that case and
would crash.

Fix that and handle that case by assuming the scale is 1 and not
offsetting the rectangle we blit from the draw framebuffer.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1673>
src/shell-blur-effect.c